package com.qf;

import org.quartz.*;

import java.util.Date;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
public class TestJob implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        //获取任务详情
        JobDetail jobDetail = context.getJobDetail();

        //获取触发器对象
        Trigger trigger = context.getTrigger();

        System.out.println("任务...... " + new Date());
    }
}
